﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/Site.master" AutoEventWireup="false"
    ValidateRequest="false" CodeFile="AssociateLoginRequest.aspx.vb" Inherits="private_secure_admin_AssociateRequest" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .style1
        {
            width: 170px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Associate Login Request
    </h2>
    <h3>
        Choose Who else can manage your Campaigns and Lists</h3>
    <br />
    <hr />
    <table>
        <tr>
            <td valign="top" class="style1">
                Choose Organisation or Business: *
            </td>
            <td valign="top">
                <asp:DropDownList ID="ddlEntityList" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1"
                    Width="200px" DataTextField="Name" DataValueField="ID" 
                    AppendDataBoundItems="true" Height="22px">
                    <asp:ListItem Value="0">Choose an item from the List</asp:ListItem>
                </asp:DropDownList>
                <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                <br />
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetData" TypeName="LogginsLogDSTableAdapters.usp_GetEntityListFull_ByPersonIdTableAdapter">
                    <SelectParameters>
                        <asp:Parameter Name="PersonId" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                <asp:BalloonPopupExtender ID="BalloonPopupExtender_ddlEntityList" runat="server"
                    CustomCssUrl="" DynamicServicePath="" Enabled="True" ExtenderControlID="" BalloonPopupControlID="Panel_Entity"
                    DisplayOnFocus="true" UseShadow="true" Position="Auto" BalloonStyle="Cloud" BalloonSize="Medium"
                    TargetControlID="ddlEntityList">
                </asp:BalloonPopupExtender>
            </td>
            <td>
                &nbsp;
            </td>
            <td rowspan="6" valign="top">
            </td>
        </tr>
        <tr>
            <td valign="top" class="style1">
                &nbsp;</td>
            <td valign="top">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td valign="top" class="style1">
                Email Address: *&nbsp;
            </td>
            <td valign="top">
                <asp:TextBox ID="txtEmail" runat="server" Width="250px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="Please enter a valid e-mail address." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <br />
                <asp:BalloonPopupExtender ID="txtEmail_BalloonPopupExtender" runat="server" CustomCssUrl=""
                    DynamicServicePath="" Enabled="True" ExtenderControlID="" BalloonPopupControlID="Panel_Email"
                    DisplayOnFocus="true" UseShadow="true" Position="Auto" BalloonStyle="Cloud" BalloonSize="Medium"
                    TargetControlID="txtEmail">
                </asp:BalloonPopupExtender>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="top" class="style1">
                &nbsp;</td>
            <td valign="top">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
            </td>
            <td valign="top">
                <asp:Button ID="btnSend" runat="server" Text="Submit Request" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:Panel ID="Panel_Email" runat="server" Visible="true">
        Enter the email address of the (staff) person for which you are requesting 
        access to this site. They will receive details along with instructions to get 
        access to the site.
    </asp:Panel>
    <asp:Panel ID="Panel_Entity" runat="server" Visible="true">
        Choose the Person, organisation, company, club, group or business that your 
        Associate will be linked with when they use the system.
    </asp:Panel>
    <asp:Panel ID="pnlAccRegistration" runat="server" Style="display: none" CssClass="modalPopup">
        <%--            <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="modalPopup" >
        --%>
        <%--                <input id="btnCancel" type="button" value="X" style="float: right; background-color: #FF0000;" />
        --%>
        <asp:Button ID="btnAccRegistrationClose" runat="server" Text="X" Style="float: right;
            background-color: #FF0000;" />
        <h2>
            Thank you. Your Associate Login Request has been accepted and is being acted upon.
        </h2>
        <p>
            An email has been sent to the person specified in your request and an email of your
            request has also been sent to you.
            <br />
            After the Associate has logged in, you may assign this (or any of your other Associates)
            to any of your other Entities whenever you're logged in. As a courtesy to you, you
            will receive an email when your associate first logs in.
        </p>
    </asp:Panel>
    <asp:Button ID="btnAccRegistrationSuccess" runat="server" Text="Button" Style="display: none;" />
    <asp:ModalPopupExtender ID="AccRegistrationSuccessModalPopupExtender" runat="server"
        PopupControlID="pnlAccRegistration" DynamicServicePath="" Enabled="True" TargetControlID="btnAccRegistrationSuccess"
        BackgroundCssClass="modalBackground" DropShadow="true">
    </asp:ModalPopupExtender>
    <asp:Panel ID="Panel_Help" runat="server" Style="display: none" CssClass="modalPopup">
        <strong>How To Use This Page<br />
        </strong>
        <br />
        1) First choose the busines that your request is being made for.<br />
        <br />
        2) Enter the email of the person for whom you are requesting the request.
        <br />
        <br />
        3) Click Submit Request
        <br />
        <br />
        When processed, this request will cause an email to be sent to the address you specified.<br />
        <br />
        Be sure to only include the email address of someone you trust. This person will
        communicate with your client/customers on your behalf.
        <br />
        <br />
        You will later be able to assign this individual to also manage other business that
        you are responsible for.<br />
    </asp:Panel>
</asp:Content>
